package com.mywork.extendtest;

/**
 * @ProjectName: testdemo
 * @ClassName: com.mywork.extendtest
 * @Author: lsx
 * @Date: 2023/04/06 15:29
 **/
public class ChildTest extends ParentTest{

    private String name;

    public ChildTest() {
        System.out.println(2);
    }


    public ChildTest(Integer num) {
        this.name = name;
        System.out.println(3);
    }

    public static void main(String[] args) {
        ChildTest childTest = new ChildTest(22);
//        ChildTest childTest1 = new ChildTest();

    }
}
